package com.cnnp.dip.business.entity;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cnnp.dip.business.common.handler.ListTypeHandler;

import com.cnnp.dip.business.common.handler.MapTypeHandler;

@TableName("annotation")
public class Annotation {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private int alertId;
    private String alertName;
    private int dashboardId;
    @TableField("dashboard_uid")
    private String dashboardUID;
    private int panelId;
    private int userId;
    private String newState;
    private String prevState;
    private long created;
    private long updated;
    private long time;
    private long timeEnd;
    private String text;
    @TableField(typeHandler = ListTypeHandler.class)
    private List<String> tags;
    private String login;
    private String email;
    private String avatarUrl;
    @TableField(typeHandler = MapTypeHandler.class)
    private Map<String, Object> data;
    private String grafanaId; // 组合唯一标识
    private int status; // 状态：0 未确认，1 确认

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getAlertId() {
        return alertId;
    }

    public void setAlertId(int alertId) {
        this.alertId = alertId;
    }

    public String getAlertName() {
        return alertName;
    }

    public void setAlertName(String alertName) {
        this.alertName = alertName;
    }

    public int getDashboardId() {
        return dashboardId;
    }

    public void setDashboardId(int dashboardId) {
        this.dashboardId = dashboardId;
    }

    public String getDashboardUID() {
        return dashboardUID;
    }

    public void setDashboardUID(String dashboardUID) {
        this.dashboardUID = dashboardUID;
    }

    public int getPanelId() {
        return panelId;
    }

    public void setPanelId(int panelId) {
        this.panelId = panelId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getNewState() {
        return newState;
    }

    public void setNewState(String newState) {
        this.newState = newState;
    }

    public String getPrevState() {
        return prevState;
    }

    public void setPrevState(String prevState) {
        this.prevState = prevState;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }

    public long getUpdated() {
        return updated;
    }

    public void setUpdated(long updated) {
        this.updated = updated;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public long getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(long timeEnd) {
        this.timeEnd = timeEnd;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public String getGrafanaId() {
        return grafanaId;
    }

    public void setGrafanaId(String grafanaId) {
        this.grafanaId = grafanaId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}